from var import core


def new_process(win, arrival, work,ui_main):
    win.close()
    core.addProcess(arrival, work)

    ui_main.refreshInit(core.getMission().zero_level_queue.queue)
